<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
	<link rel="stylesheet" type="text/css" href="css/login.css" ></link>
	<meta charset="UTF-8">
</head>

<body>
<div id="div_center">
	<div id="div_inputbox">
		<input type="text" name="username" id="username" />
		<input type="password" name="password" id="password" />
	</div>
	<input id="btn_img" type="image" src="images/bg_login_btn.jpg" />
</div>
<script src="./js/jquery.js"></script>
<script charset="gb2312" type="text/javascript">
	$(function () {
		$("#btn_img").click(function () {
			$.post("login",{
				username:$("#username").val(),
				password:$("#password").val()
			},function(data) {

				if (data=="s") {
					window.location.href = "menu"
				}else {
					alert("用户名或密码错误")
				}
			})
		})
	})
</script>
</body>

</html>



